package Homework03;

public class StreamflowPackage extends AbstractPackage implements StreamService{
    private int streamflow;


    public StreamflowPackage() {
    }

    public StreamflowPackage(int streamflow, int price) {
        this.streamflow = streamflow;
        this.price=price;
    }

    public int getStreamflow() {
        return streamflow;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setStreamflow(int streamflow) {
        this.streamflow = streamflow;

    }
    @Override
    public void show(){
        System.out.println("此套餐每月流量"+streamflow+"GB");
        System.out.println("此套餐价格为："+price+"元");
    }

    @Override
    public void showInfo(int streamflow, SIMCard card) {
        System.out.println("用户"+card.getID()+"每月流量为"+streamflow+"GB");
    }
}
